.class Lcom/hyphenate/chat/EMHeartBeatReceiver;
.super Landroid/content/BroadcastReceiver;


# static fields
.field private static final TAG:Ljava/lang/String; = "EMHeartBeatReceiver"


# instance fields
.field smartHeartbeat:Lcom/hyphenate/chat/EMSmartHeartBeat;


# direct methods
.method public constructor <init>(Lcom/hyphenate/chat/EMSmartHeartBeat;)V
    .locals 1

    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    const/4 v0, 0x0

    iput-object v0, p0, Lcom/hyphenate/chat/EMHeartBeatReceiver;->smartHeartbeat:Lcom/hyphenate/chat/EMSmartHeartBeat;

    iput-object p1, p0, Lcom/hyphenate/chat/EMHeartBeatReceiver;->smartHeartbeat:Lcom/hyphenate/chat/EMSmartHeartBeat;

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 2

    const-string/jumbo v0, "EMHeartBeatReceiver"

    const-string/jumbo v1, "onReceive EMHeartBeatReceiver"

    invoke-static {v0, v1}, Lcom/hyphenate/util/EMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcom/hyphenate/chat/EMHeartBeatReceiver;->smartHeartbeat:Lcom/hyphenate/chat/EMSmartHeartBeat;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/hyphenate/chat/EMHeartBeatReceiver;->smartHeartbeat:Lcom/hyphenate/chat/EMSmartHeartBeat;

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMSmartHeartBeat;->start()V

    :cond_0
    return-void
.end method
